package com.lucy.viewer.config;

import com.lucy.viewer.constant.ViewerServiceEnum;

/**
 * @author kindear
 * 预览模式配置
 */
public interface PreviewModeConfig {
    default ViewerServiceEnum preview_doc(){
        return ViewerServiceEnum.ONLY_OFFICE;
    }

    default ViewerServiceEnum preview_docx(){
        return ViewerServiceEnum.ONLY_OFFICE;
    }

    default ViewerServiceEnum preview_docm(){
        return ViewerServiceEnum.ONLY_OFFICE;
    }

    default ViewerServiceEnum preview_dot(){
        return ViewerServiceEnum.ONLY_OFFICE;
    }

    default ViewerServiceEnum preview_rtf(){
        return ViewerServiceEnum.ONLY_OFFICE;
    }

    default ViewerServiceEnum preview_xml(){
        return ViewerServiceEnum.ONLY_OFFICE;
    }

    default ViewerServiceEnum preview_xlsx(){
        return ViewerServiceEnum.ONLY_OFFICE;
    }

    default ViewerServiceEnum preview_xls(){
        return ViewerServiceEnum.ONLY_OFFICE;
    }

    default ViewerServiceEnum preview_csv() {
        return ViewerServiceEnum.ONLY_OFFICE;
    }

    default ViewerServiceEnum preview_ppt(){
        return ViewerServiceEnum.ONLY_OFFICE;
    }

    default ViewerServiceEnum preview_pptx(){
        return ViewerServiceEnum.ONLY_OFFICE;
    }

    default ViewerServiceEnum preview_pdf(){
        return ViewerServiceEnum.ONLY_OFFICE;
    }

    default ViewerServiceEnum preview_txt() {return ViewerServiceEnum.ONLY_OFFICE;}

    default ViewerServiceEnum preview_png(){ return ViewerServiceEnum.VIEWER_JS;}

    default ViewerServiceEnum preview_jpg(){ return ViewerServiceEnum.VIEWER_JS;}

    default ViewerServiceEnum preview_gif(){ return ViewerServiceEnum.VIEWER_JS;}

    default ViewerServiceEnum preview_bmp(){ return ViewerServiceEnum.VIEWER_JS;}

    default ViewerServiceEnum preview_jpeg(){ return ViewerServiceEnum.VIEWER_JS;}

    default ViewerServiceEnum preview_tif(){ return ViewerServiceEnum.VIEWER_JS;}

    default ViewerServiceEnum preview_md(){
        return ViewerServiceEnum.VDITOR;
    }

    default ViewerServiceEnum preview_java(){return ViewerServiceEnum.VDITOR; }

    default ViewerServiceEnum preview_css(){return ViewerServiceEnum.VDITOR;}

    default ViewerServiceEnum preview_c(){
        return ViewerServiceEnum.VDITOR;
    }

    default ViewerServiceEnum preview_h(){
        return ViewerServiceEnum.VDITOR;
    }
    default ViewerServiceEnum preview_py(){
        return ViewerServiceEnum.VDITOR;
    }
    default ViewerServiceEnum preview_cs(){
        return ViewerServiceEnum.VDITOR;
    }

    default ViewerServiceEnum preview_m(){
        return ViewerServiceEnum.VDITOR;
    }

    default ViewerServiceEnum preview_cpp(){
        return ViewerServiceEnum.VDITOR;
    }

    default ViewerServiceEnum preview_php(){
        return ViewerServiceEnum.VDITOR;
    }

    default ViewerServiceEnum preview_r(){
        return ViewerServiceEnum.VDITOR;
    }

    default ViewerServiceEnum preview_json(){
        return ViewerServiceEnum.BROWSER;
    }

    default ViewerServiceEnum preview_js(){
        return ViewerServiceEnum.VDITOR;
    }

    default ViewerServiceEnum preview_sh(){
        return ViewerServiceEnum.VDITOR;
    }

    default ViewerServiceEnum preview_html(){
        return ViewerServiceEnum.VDITOR;
    }

    default ViewerServiceEnum preview_vue(){
        return ViewerServiceEnum.VDITOR;
    }


    default ViewerServiceEnum preview_default(){
        return ViewerServiceEnum.BROWSER;
    }
}
